package com.javacodegeeks.android.preferences;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity
{
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        Button prefBtn = (Button) findViewById(R.id.pref_btn);
        prefBtn.setOnClickListener(new OnClickListener() {

                public void onClick(View v) {
                        Intent settingsActivity = new Intent(getBaseContext(),
                                        QuickPrefsActivity.class);
                        startActivity(settingsActivity);
                }
        });
        
        /*Button scan_btn = (Button) findViewById(R.id.scan_btn);
        scan_btn.setOnClickListener(new OnClickListener()
        {
        	public void onClick(View v)
        	{
        		Intent loggingActivity = new Intent(getBaseContext(),
        				LoggingActivity.class);
        		startActivity(loggingActivity);
        	}
        });*/
    }
}
